// enum Career {coder, productManager,admin}
type Career = 'coder' |'productManager' |'admin'
interface User{
	name:string,
	age:number;
	career:Career
}
const liLei:User = {
	name: '李雷',
	age: 25,
	career: 'coder'
}

const hanMeiMei:User = {
	name: '韩梅梅',
	age: 24,
	career: 'productManager'
}

class User {
	name!:string
	age!:number
	career!:Career
	constructor(name:string , age:number, career:Career){
		this.name = name
		this.age = age
		this.career = career 
	}
}
const user = new User('李雷', 25, 'coder')
console.log(user)

class Factory{

}